import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 引入vue-router --------------------
import VueRouter from 'vue-router'

Vue.config.productionTip = false
// 1.引入
import Axios from 'axios'
// 2.挂载
Vue.prototype.axios = Axios

Vue.use(ElementUI)

Vue.use(VueRouter)

new Vue({
  el: '#app',
  render: h => h(App),

  // 引入vue-router --
  router: router,
  store,
  render: h => h(App)
}).$mount('#app')
